#ifndef slak_tetris_field_h
#define slak_tetris_field_h

#include "tetrad.h" 

namespace slak {

	namespace tetris {
	
		struct Field : public Tetrad {
			Tetrad falling;
			int x,y;

			Field(int w, int h);

			virtual void clear();

			bool drop(const Tetrad& f);
			void renderFalling();
			bool moveFalling(int dx, int dy);
			bool rotateFalling();
			virtual square_state  sq(int i, int j) const;
		};

	}
}

#endif

